package com.pactera.miyuangroup.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.pactera.miyuangroup.db.entity.Replenishment;
import com.baomidou.mybatisplus.service.IService;
import com.pactera.miyuangroup.vo.request.app.AppAddReplenishmentReq;
import com.pactera.miyuangroup.vo.request.app.AppReplenishmentReq;
import com.pactera.miyuangroup.vo.request.web.ReplenishmentRequest;
import com.pactera.miyuangroup.vo.response.app.AppReplenishmentListRes;
import com.pactera.miyuangroup.vo.response.app.AppReplenishmentRes;
import com.pactera.miyuangroup.vo.response.web.ReplenishmentRes;

import java.util.List;

/**
 * <p>
 * 补货记录 服务类
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
public interface ReplenishmentService extends IService<Replenishment> {
    /*
    * 查询补货记录列表
    * */
    Page<ReplenishmentRes> getReplenishmentList(ReplenishmentRequest replenishmentRequest,String org);


    /*
    * 前端查询补货记录
    * */

    Page<AppReplenishmentRes> getAppReplenishmentList(AppReplenishmentReq appReplenishmentReq, String userId);

    /*
    * 前端工控号查询补货机信息
    * */
    AppReplenishmentRes getAppVendorInfo(String controlNumber);


    /*
    * 前端插入补货记录
    * */
    boolean addReplenishmentRes(AppAddReplenishmentReq appAddReplenishmentReq);

    List<AppReplenishmentListRes> getAppNeedReplenishmentList(String userId);
}
